function p_ = quick_val(x, alpha, beta, gamma, lambda)% function p_ = quick_val(x, alpha, beta, gamma, lambda)% %   Computes Quick (cumulative Weibull) function at values%     in x given parameters:%   %       alpha  ... threshold -- x at inflection point%       beta   ... slope -- really shape -- term%       gamma  ... lower asymptote, or "guess rate"%       lambda ... upper asymptote, or "lapse rate"%% 	Returns vector or matrix, p, the same size as x. If x is a matrix, then % 		the function operates on each of the columns. alpha, beta, lambda and%       gamma must be scalars.%% see also quick_fit and quick_err% updated by jig 8/21/07p_ = gamma + (1 - gamma - lambda) * (1 - exp( -(x/alpha).^beta )); % quick